package com.sky.service;


import com.sky.dto.DataOverViewQueryDTO;
import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;

public interface ReportService {
    /**
     * 营业额统计
     * @param begin
     * @param  end
     * @return
     */
    TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     *  用户统计
     * @param begin
     * @param end
     * @return
     */
    UserReportVO userStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO ordersStatistics(LocalDate begin, LocalDate end);

    /**
     *  商品销量top10
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO topTen(LocalDate begin, LocalDate end);

    /**
     *  商品销量top10
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getTopTen(LocalDate begin, LocalDate end);

    /**
     * 导出excel报表
     * @param httpServletResponse
     */
    void exportBusinessDate(HttpServletResponse httpServletResponse);
}
